
def x = "abc", def y = 1
System.out.println "hello world"
def createName(String givenName, String familyName) {
    return givenName + " " + familyName
}
createName familyName = "Lee", givenName = "Bruce"
def sayHello(String name = "humans") {
    print "Hello ${name}"
}
sayHello()
def name = 'world'
print "hello ${name}"
print 'hello ${name}'
def name = 'world'
print "hello ${name}"
print 'hello ${name}'
def name = 'world'
def aString = '''line one
line two
line three
${name}
'''
def bString = """line one
line two
line three
${name}
"""
def codeBlock = {print "hello closure"}
codeBlock()
def pipeline(closure) {
    closure()
}
pipeline(codeBlock)
pipeline({print "hello closure"})
pipeline {
    print "hello closure"
}
def stage(String name, closure) {
    println name
    closure()
}
stage("stage name", {println "closure"})
stage("stage name") {
    print "closure"
}